package com.aisi.backend.service;

import com.aisi.backend.domain.vo.request.TopicCreateVo;
import com.aisi.backend.domain.vo.request.TopicUpdateVo;
import com.aisi.backend.domain.vo.response.TopicDetailVo;
import com.aisi.backend.domain.vo.response.TopicPreviewVo;

import java.util.List;

/**
 * @Author: shenjianZ
 * @Date: 2024/5/11 下午9:19
 * @Description:
 */


public interface TopicService {
    boolean createTopic(Integer userId, TopicCreateVo topicCreateVo);

    List<TopicPreviewVo> listTopic(Integer page, Integer type);

    TopicDetailVo listTopicDetail(Integer tid);

    Integer updateTopic(Integer userId, TopicUpdateVo topicUpdateVo);
}
